<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.org/ui"
                template="/templates/ui.xhtml">

    <ui:define name="head">
        <title> 发票|预收款代码维护</title>
        <script type="text/javascript" src="#{request.contextPath}/UI/support/pub.js"/>
        <script type="text/javascript" language="javascript">
            document.onkeydown = function TabReplace() {
                if (event.keyCode == 13) {
                    if (event.srcElement.tagName != 'BUTTON')
                        event.keyCode = 9;
                    else
                        event.srcElement.click();
                }
            }
        </script>

    </ui:define>
    <ui:define name="content">
        <h:form id="form">
            <p:panelGrid columns="3">
                <h:outputText  value="发票"/>
                <p:inputText id="fp" value="#{invoiceInfoAction.fpCondition}"/>
                <p:commandButton value="保存" actionListener="#{invoiceInfoAction.fpSave()}" update="fp"/>
                <h:outputText value="收据"/>
                <p:inputText id="sj" value="#{advanceReceiptsAction.sjCondition}"/>
                <p:commandButton value="保存" actionListener="#{advanceReceiptsAction.sjSave()}" update="sj"/>
            </p:panelGrid>
        </h:form>
    </ui:define>
</ui:composition>

